<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <button id="button1">我是button按钮</button>
</body>
<script>
  // document.getElementById('button1').disabled = true;
  // document.getElementById('button1').setAttribute('disabled',true)

  // document.getElementById('button1').setAttribute('Readonly',true);
  document.getElementById('button1').Readonly = true;
</script>
</html>